#pragma once
#include "graphics/GrVector.h"
#include "sgobject.h"
#include "SgPolygon.h"
#include <vector>


class CSgSphere :
	public CSgObject
{
public:
	CSgSphere(double p_radius, bool p_port);
	CSgSphere(double p_radius);
	~CSgSphere(void);

	void Sphere(double p_radius);
	void Render();
	void Portion();

	void SphereFace(int p_recurse, double p_radius, GLdouble *a, GLdouble *b, GLdouble *c);

private:
	double p_radius;
	int m_portion;
	std::vector < CSgPtr<CSgPolygon> > m_sphereFaces;
	//m_sphereFace1;

};
